#ifndef SYSTEMSETTINGMESSAGE_H
#define SYSTEMSETTINGMESSAGE_H

#include <string>
#include <pwd.h>
#include <unistd.h>

#include <model.h>
#include <broadcast.h>
#include <modelConf.h>

namespace Model {

  enum AttackType{
    SYSTEM_SETTING = 0,
    SYN_ATTACK,
    ARP_ATTACK,
    SMURF_ATTACK
  };

  class SystemSettingMessage : public model
  {
    int onshowItems;
    AttackType currentAttack;
    std::string currentBackgroundName;
    Controller::Language currentLanguage;

    bool WriteBack();
  public:
    virtual int ReceiveBroadcast(Controller::Broadcast *broadcast) ;
    virtual int ReLoadConf();
    AttackType GetCurrentAttack(){return currentAttack;}
  };

}

#endif
